package model.security;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;


/**
 * UsrRole entity. @author MyEclipse Persistence Tools
 */

public class UsrRole  implements java.io.Serializable {


    // Fields    

     private Integer roleid;
     private String rolename;
     private String roledesc;
     private Boolean enabled;
     private Boolean isadmin;
     private Timestamp createtime;
     private Set usrUserRoles = new HashSet(0);
     private Set usrRoleAuths = new HashSet(0);


    // Constructors

    /** default constructor */
    public UsrRole() {
    }

    
    /** full constructor */
    public UsrRole(String rolename, String roledesc, Boolean enabled, Boolean isadmin, Timestamp createtime, Set usrUserRoles, Set usrRoleAuths) {
        this.rolename = rolename;
        this.roledesc = roledesc;
        this.enabled = enabled;
        this.isadmin = isadmin;
        this.createtime = createtime;
        this.usrUserRoles = usrUserRoles;
        this.usrRoleAuths = usrRoleAuths;
    }

   
    // Property accessors

    public Integer getRoleid() {
        return this.roleid;
    }
    
    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public String getRolename() {
        return this.rolename;
    }
    
    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public String getRoledesc() {
        return this.roledesc;
    }
    
    public void setRoledesc(String roledesc) {
        this.roledesc = roledesc;
    }

    public Boolean getEnabled() {
        return this.enabled;
    }
    
    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public Boolean getIsadmin() {
        return this.isadmin;
    }
    
    public void setIsadmin(Boolean isadmin) {
        this.isadmin = isadmin;
    }

    public Timestamp getCreatetime() {
        return this.createtime;
    }
    
    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    public Set getUsrUserRoles() {
        return this.usrUserRoles;
    }
    
    public void setUsrUserRoles(Set usrUserRoles) {
        this.usrUserRoles = usrUserRoles;
    }

    public Set getUsrRoleAuths() {
        return this.usrRoleAuths;
    }
    
    public void setUsrRoleAuths(Set usrRoleAuths) {
        this.usrRoleAuths = usrRoleAuths;
    }
   








}